/*
** xwrite.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Sat Mar 24 00:15:29 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:42:09 2012 christophe labonnemartinez
*/

#include <unistd.h>
#include <stdlib.h>
#include "includes/my.h"

int	xwrite(const int where, char *str, int len)
{
  if ((write(where, str, len)) <= 0)
    exit(EXIT_FAILURE);
  return (len);
}
